package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 原数据库 es_crtsh_new 表
 * @TableName db_crtsubdomain
 */
@TableName(value ="db_crtsubdomain")
@Data
public class DbCrtsubdomain implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String kyEdCrtsubdomainNotAfter;

    /**
     * 
     */
    private Integer kyEdCrtsubdomainIssuerCaId;

    /**
     * 
     */
    private String kyEdCrtsubdomainEntryTimestamp;

    /**
     * 
     */
    private String kyEdCrtsubdomainNameValue;

    /**
     * 
     */
    private String kyEdCrtsubdomainNotBefore;

    /**
     * 
     */
    private String kyEdCrtsubdomainSerialNumber;

    /**
     * 
     */
    private String kyEdCrtsubdomainCommonName;

    /**
     * 
     */
    private String kyEdCrtsubdomainIssuerName;

    /**
     * 
     */
    private String kyEdCrtsubdomainDomainName;

    /**
     * 
     */
    private String createUser;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String updateUser;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbCrtsubdomain other = (DbCrtsubdomain) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getKyEdCrtsubdomainNotAfter() == null ? other.getKyEdCrtsubdomainNotAfter() == null : this.getKyEdCrtsubdomainNotAfter().equals(other.getKyEdCrtsubdomainNotAfter()))
            && (this.getKyEdCrtsubdomainIssuerCaId() == null ? other.getKyEdCrtsubdomainIssuerCaId() == null : this.getKyEdCrtsubdomainIssuerCaId().equals(other.getKyEdCrtsubdomainIssuerCaId()))
            && (this.getKyEdCrtsubdomainEntryTimestamp() == null ? other.getKyEdCrtsubdomainEntryTimestamp() == null : this.getKyEdCrtsubdomainEntryTimestamp().equals(other.getKyEdCrtsubdomainEntryTimestamp()))
            && (this.getKyEdCrtsubdomainNameValue() == null ? other.getKyEdCrtsubdomainNameValue() == null : this.getKyEdCrtsubdomainNameValue().equals(other.getKyEdCrtsubdomainNameValue()))
            && (this.getKyEdCrtsubdomainNotBefore() == null ? other.getKyEdCrtsubdomainNotBefore() == null : this.getKyEdCrtsubdomainNotBefore().equals(other.getKyEdCrtsubdomainNotBefore()))
            && (this.getKyEdCrtsubdomainSerialNumber() == null ? other.getKyEdCrtsubdomainSerialNumber() == null : this.getKyEdCrtsubdomainSerialNumber().equals(other.getKyEdCrtsubdomainSerialNumber()))
            && (this.getKyEdCrtsubdomainCommonName() == null ? other.getKyEdCrtsubdomainCommonName() == null : this.getKyEdCrtsubdomainCommonName().equals(other.getKyEdCrtsubdomainCommonName()))
            && (this.getKyEdCrtsubdomainIssuerName() == null ? other.getKyEdCrtsubdomainIssuerName() == null : this.getKyEdCrtsubdomainIssuerName().equals(other.getKyEdCrtsubdomainIssuerName()))
            && (this.getKyEdCrtsubdomainDomainName() == null ? other.getKyEdCrtsubdomainDomainName() == null : this.getKyEdCrtsubdomainDomainName().equals(other.getKyEdCrtsubdomainDomainName()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainNotAfter() == null) ? 0 : getKyEdCrtsubdomainNotAfter().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainIssuerCaId() == null) ? 0 : getKyEdCrtsubdomainIssuerCaId().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainEntryTimestamp() == null) ? 0 : getKyEdCrtsubdomainEntryTimestamp().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainNameValue() == null) ? 0 : getKyEdCrtsubdomainNameValue().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainNotBefore() == null) ? 0 : getKyEdCrtsubdomainNotBefore().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainSerialNumber() == null) ? 0 : getKyEdCrtsubdomainSerialNumber().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainCommonName() == null) ? 0 : getKyEdCrtsubdomainCommonName().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainIssuerName() == null) ? 0 : getKyEdCrtsubdomainIssuerName().hashCode());
        result = prime * result + ((getKyEdCrtsubdomainDomainName() == null) ? 0 : getKyEdCrtsubdomainDomainName().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", kyEdCrtsubdomainNotAfter=").append(kyEdCrtsubdomainNotAfter);
        sb.append(", kyEdCrtsubdomainIssuerCaId=").append(kyEdCrtsubdomainIssuerCaId);
        sb.append(", kyEdCrtsubdomainEntryTimestamp=").append(kyEdCrtsubdomainEntryTimestamp);
        sb.append(", kyEdCrtsubdomainNameValue=").append(kyEdCrtsubdomainNameValue);
        sb.append(", kyEdCrtsubdomainNotBefore=").append(kyEdCrtsubdomainNotBefore);
        sb.append(", kyEdCrtsubdomainSerialNumber=").append(kyEdCrtsubdomainSerialNumber);
        sb.append(", kyEdCrtsubdomainCommonName=").append(kyEdCrtsubdomainCommonName);
        sb.append(", kyEdCrtsubdomainIssuerName=").append(kyEdCrtsubdomainIssuerName);
        sb.append(", kyEdCrtsubdomainDomainName=").append(kyEdCrtsubdomainDomainName);
        sb.append(", createUser=").append(createUser);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleted=").append(deleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}